package com.xzh.wms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.xzh.wms.entity.*;
import com.xzh.wms.service.InventoryService;
import java.util.List;

 /**
 * 库存表;(206_inventory)控制层
 * @author : heimi
 * @date : 2024-11-29
 */
@RestController
@RequestMapping("/api/inventory")
public class InventoryController{
    @Autowired
    private InventoryService inventoryService;
    
    /** 
     * 查询接口
     */
     @GetMapping
     public List<Inventory> select(InventoryQuery query){
        return inventoryService.select(query);
    }
}